﻿using System;

namespace TriangleSurface
{
    class TriangleSurface
    {
        static double ByThreeSides(int sideA, int sideB, int sideC)
        {
            return (sideA + sideB + sideC) / 2;
        }
        static double ByIncludedAngle(int sideA, int sideB, int angle)
        {
            return (sideA * sideB * Math.Sin((angle * Math.PI) / 180)) / 2;
        }
        static double BySideHeight(int side, int height)
        {
            return (side * height) / 2;
        }
        static void Main()
        {
            int side = 10;
            Console.WriteLine("A = {0}, B = {0}, c = {0} => {1}", side,  ByThreeSides(side, side, side));
            Console.WriteLine("A = {0}, B = {0}, angle = {0} => {1}", side, ByIncludedAngle(side, side, side));
            Console.WriteLine("A = {0}, altitude = {0} => {1}", side, BySideHeight(side, side));
        }
    }
}
